<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Links extends CI_Controller {


	public function __construct()
	{
		parent::__construct();
		$this->load->helper(array('form', 'url','html'));
		$this->load->model('LinksDAO','links_dao');
		$idioma=$this->session->userdata('idioma');
		$this->lang->load('ac', $idioma);	
	}

	public function index()
	{
		$data['links_data']=$this->links_dao->get_links();
		$this->load->view('links',$data);
	}
	public function guardar_comentario ()
	{
		$nombre= $this->input->post('nombre');
		$email= $this->input->post('email');
		$comentario= $this->input->post('comentario');
		$this->links_dao->insert_comentario($nombre,$email,$comentario);
	}
}

/* End of file welcome.php */
/* Location: ./application/controllers/welcome.php */